package com.yang.security.token;


import com.yang.security.model.LoginUser;
import com.yang.security.model.Token;

/**
 * Created by baipan
 * Date: 2019-12-18
 * Token Service 接口
 */
public interface TokenService {

	Token saveToken(LoginUser loginUser);

	void refresh(LoginUser loginUser);

	LoginUser getLoginUser(String token);

	boolean deleteToken(String token);

}
